*{
    margin:0;
    padding: 0;
}
html,body{
    height: 100vh;
     font-family: "\5FAE\8F6F\96C5\9ED1";
}
a{
    text-decoration: none;
    color: white;
    display: block;
}
ul {
    list-style: none;
}
header{
    font-size: 1.5em;
    width: 80%;
    margin: 30px auto;
}
nav{
    background-color: black;
    height:50px;
    position: sticky;
    top: 0px;/*写到哪最终停到哪*/
   width: 100%;
}
nav ul{
    width: 100%;
    height: 100%;
    margin: 0 auto;
  /* background-color: rgb(0,0,0); */

    display: flex;
    justify-content: space-between;
}
nav ul li:nth-of-type(1){
    margin-left: 30px;
}
nav ul li:nth-of-type(5){
    margin-right: 30px;
}
nav ul li a{
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 50px;
}
nav ul li a:hover{
    color: #f40;
}
article{
    display: flex;
    width: 80%;
    margin: 0 auto;
    height: 100vh;
   
}
.left{
    flex: 2.4;
    display: flex;
    flex-direction: column;
}
.right{
    flex: 0.6;
}
.left h1{
    flex: 0.2;
    text-align: left;
 
    line-height: 50px;
}
aside{
    flex: 3.8;
}
aside img{
    width: 120px;
    height: 80px;
    display: block;
    float: left;
    margin: 0px 20px 10px 0px;
}
aside p{
    text-align: left;
    margin-bottom: 10px;
}
.right{
    flex-direction: column;
    margin-left: 20px;
}
.right h1{
    

    text-align: left;
    line-height: 50px;
}
.right .pic{
    display: grid;
    grid-template-columns:1fr 1fr;
    grid-gap: 2px;
}
.right .pic img{
    width: 100%;
    height: 100%;
}
@media screen and (max-width:501px) {
   article{
      flex-direction: column;
   } 
   nav ul {
       flex-direction: column;
   }
   nav ul li{
       background-color: black;
   }
  .lis:hover{
       background-color: #333333;
   }
   nav ul li:nth-of-type(1){
    margin-left: 0px;
}
nav ul li:nth-of-type(5){
    margin-right: 0px;
}


/* .lis ~.lis{
 transition: height 1s ease;
} */
.lis{
    height: 0px;
    
    transition: all 1s ease;
}
.lis a{
   
    font-size: 0;
    transition: font-size 1s ease;
    overflow: hidden;
   
}

.tlis:hover .lis{
    height: 50px;
    font-size: 16px;  
}
.tlis:hover .lis>a{
  
    font-size: 16px;
}
.right{
    flex-direction: column;
    margin-left: 0px;
}
aside p{
    text-align: left;
    margin-bottom: 8px;
}
}